home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
jobrec.arc
/
QJOB.FMT
Wrap
Text File
|
1989-08-09
|
8KB
|
198 lines
Definition of Record Structure for print Queue Jobs
---------------------------------------------------
Revised March 31, l987
This data applies to all queue jobs, not just print jobs.
Fields are marked as follows:
Q - Set up by thc queue management software and may not be changed.
C - Set up by the client, ignored by the queue management software.
May be changed by client with queue function calls.
U - Set up by client, used by queue management software. May be
changed by client with queue function calls.
M - Set up by tbe queue management software but may be modified by
issuing queue function calls.
Long and Word are in High-Low order.
Q:Byte Client Station
Connection number that put this job in the Queue.
Q:Byte Client Task
Task number that submitted the job.
Q:Long Client ID Number
User ID of user thst submitted job.
U:Long Target Server ID Number
Target server for job. If any server may service the job,
use -1.
U:Byte[ 6] Target Execution Time
Time the Job should be executed. Year, Month, Day, Hour.
Minute, Second. All 0xFF means as soon as possible.
Q:Byte[ 6] Job Entry Time
Time job was entered in queue. Same format as above.
Q:Word Job Number
Job number for this print job.
U:Word Job Type
This field will be used as the form number for print jobs.
M:Byte Job Position
Position in the queue of this job.
U:Byte Job Control Flags
80h: Set if job put on bold by operator.
40h: Set if put on hold by user.
20h: Set when you call CreateAQueueJob. Cleared when you
call CloseAndStartQueueJob.
10h: Set if job may be restarted in the event of a server
failure.
08h: Set if job should started if user has not done
CloseAndStartQueueJob and the users connection is
terminated.
Q:Byte[14] Job File Name
File name created when CreateQueueJob was called.
Q:Byte[ 6] Job File Handle
File handle for file created when CreateQueueJob was called.
Q:Byte Server Station
Station number of server servicing the job. This is
undefined unless the job is currently being serviced.
Q:Byte Server Task
Task number of queue server servicing the task.
Q:Long Server ID Number
Server ID of server servicing the task.
C:Byte[ 50] Job Description Text
Description of the job. This will usually be the name of
the file being printed, but the user can change it.
C:Byte[132] Client Record Area
Special data chat is only defined for print jobs.
Definition of Client Record Area
--------------------------------
This data applies only to print jobs. All of these fields must be set up by the
client and may be changed by the client with Queue Function Calls.
Byte Client Record Area version number
Current version is 0.
Byte Tab Size
Number of spaces that tabs will be expanded to. Minimum is
0, maximum of 18.
Word Number of copies.
Word Control Flags.
0080h: Set if banner should be printed
0040h: Set if text stream. If set, tabs are expanded and the
lines per page and characters per line fields are
ignored.
0008h: Set if form feeds should be suppressed.
0004h: Print job if interrupted during cature process.
Word Maximum Lines per Page. Default 60.
Word Maximum Characters per Line. Default 132.
Byte[ 16] Null terminated form name
Byte[ 6] Reserved for future use.
Should be set to zero.
Byte[ 13] Banner Name Field
Text to be printed in the first box on the banner. This is
usually the user name, but the user should be able to change
it.
Byte[ 13] Banner File Field
Text to be printed in second box on banner. This is
currently used for the file name. But the user should be
able to change it.
Byte[ 14] Header File Name
File name printed in header of banner.
Byte[ 80] Directory Path
Full path name of the file to be printed.
Format of New Banner
--------------------
********************************************************************************
* User Name: {From Client ID}{Station} Queue: {File Server}{Queue Name} *
* File Name: {From Header File Name} Server: {Print Server} *
* {Directory of the file being printed} *
* {Date submitted} {Time submitted} *
* {Job description text} *
********************************************************************************
* *
* *
* *
* *
* *
* {Banner Name Field in large letters} *
* *
* *
* *
* *
* *
********************************************************************************
* *
* *
* *
* *
* {Banner File Field in large letters} *
* *
* *
* *
* *
********************************************************************************